﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Hi_Baidu;

namespace Hi_Baidu.FileShare.ListType
{
    public class TYPE_RecvFileStruct : IMetaData
    {
        public TYPE_RecvFileStruct(String Key)
        {
            key = Key;
        }

        private int _FileSize;
        /// <summary>
        ///     文件大小
        /// </summary> 
        public int FileSize
        {
            get { return _FileSize; }
            set { _FileSize = value; }
        }

        private int _FilePort;
        /// <summary>
        ///     文件端口
        /// </summary>
        public int FilePort
        {
            get { return _FilePort; }
            set { _FilePort = value; }
        }

        private String _IPAddress;
        /// <summary>
        ///     IP地址 
        /// </summary>
        public String IPAddress
        {
            get { return _IPAddress; }
            set { _IPAddress = value; }
        }

        private String _Username;
        /// <summary>
        ///     用户名
        /// </summary>
        public String Username
        {
            get { return _Username; }
            set { _Username = value; }
        }

        private String _FileName;
        /// <summary>
        ///     文件名
        /// </summary>
        public String FileName
        {
            get { return _FileName; }
            set { _FileName = value; }
        }

        private String _Ext;
        /// <summary>
        ///     文件后缀名
        /// </summary>
        public String Ext
        {
            get { return _Ext; }
            set { _Ext = value; }
        }

        private String _FileSession;
        /// <summary>
        ///     文件传送会话ID
        /// </summary>
        public String FileSession
        {
            get { return _FileSession; }
            set { _FileSession = value; }
        }

        #region IMetaData 成员
        private String key;
        public string Key
        {
            get
            {
                return key;
            }
            set
            {
                key = value;
            }
        }

        #endregion
    }
}
